]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Avoid hiding early AppDisplay when transitioning to Session
authorHarshad Gavali <harshadgavali@outlook.com>
Sat, 12 Jun 2021 19:11:52 +0000 (00:41 +0530)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 12 Jun 2021 22:51:35 +0000 (00:51 +0200)
When transitioning from AppDisplay to Session,
AppDisplay should be visible throughout the transition.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4214

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1886>

js/ui/overviewControls.js

index 13535d0689abb46c39eb8705da404b0eeee6d9e5..88726573dc546fe7c7f597779fba04b0b29c01e0 100644 (file)
@@ -534,8 +534,8 @@ class ControlsManager extends St.Widget {
         if (!stateTransitionParams)
             stateTransitionParams = this._stateAdjustment.getStateTransitionParams();
 
-        const { currentState, finalState } = stateTransitionParams;
-        const state = Math.max(currentState, finalState);
+        const { initialState, finalState } = stateTransitionParams;
+        const state = Math.max(initialState, finalState);
 
         this._appDisplay.visible =
             state > ControlsState.WINDOW_PICKER &&